//------------------------------------------------------------
// * Author         : Ekko
// * Description    : 玩家控制类
//------------------------------------------------------------

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Animation)
    playerAnim : cc.Animation = null;

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        this.playerAnim = this.getComponent(cc.Animation);
    }

    start () {
        this.playerAnim.play();
    }

    // update (dt) {}
}
